% -*- coding: utf-8 -*-
\documentclass[openany]{book}

\input{preamble}
\makeatletter
\patchcmd{\@starttoc}{\jobname}{TeXByTopic}{}{}
\makeatother

\begin{document}

\setcounter{tocdepth}{1}
\renewcommand{\contentsname}{目录}
\phantomsection
\pdfbookmark{\contentsname}{Contents}
\tableofcontents

\end{document}
